﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>趣+商家后台管理系统 - 登录</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link href="/Content/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Content/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/Content/css/animate.min.css" rel="stylesheet">
    <link href="/Content/css/style.min.css" rel="stylesheet">
    <link href="/Content/css/login.css" rel="stylesheet">
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if (window.top !== window.self) { window.top.location = window.location };
    </script>
    <style>

        input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { /* WebKit*/ color: #cfcece; }
        input:-moz-placeholder, textarea:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #cfcece; }
        input::-moz-placeholder, textarea::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #cfcece; }
        input:-ms-input-placeholder, textarea:-ms-input-placeholder { /* IE 10+ */ color: #cfcece; }

    </style>
</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-12">
                <div class="signin-info">
                    <div class="m-b" style="margin-bottom:2%">
                        <img style="width:60px;height:60px;" src="~/Content/img/logo.png" />
                    </div>
                    <div class="logopanel m-b" style="margin-bottom:2%">
                        <h1 style="font-size:20px;font-family:'微软雅黑';">趣+尚品 </h1>
                    </div>

                    <h4 style="font-size:16px; color:#fefefe;font-family:'微软雅黑';font-weight: 100;letter-spacing:1px;">商家登录</h4>
                </div>
            </div>
            <div class="col-sm-12 " style="text-align: center;margin-top:3%">
                <div style="width:55%;margin:0 auto;">
                    <form>
                        <input type="text" id="userName"style="font-family:'微软雅黑';" class="uname" placeholder="请输入手机号" />
                        <input type="password" id="Password" style="font-family:'微软雅黑';" class="pword " placeholder="请输入密码" />
                        <button class="btn" style="font-family:'微软雅黑';" onclick="userLogin()" type="button">登 录</button>
                    </form>
                </div>
            </div>
            
        </div>
        <div class="signup-footer col-sm-12">
            <div style="font-family:'微软雅黑';font-size:12px;color:#fffefe">
                豫ICP备18015706号 Copyright &copy; 2018 六合一道网络科技（河南）有限公司
            </div>
        </div>
    </div>
    <script src="/Content/js/jquery.min.js?v=2.1.4"></script>
    <script src="/Content/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/Content/plugins/layer/layer.min.js"></script>
    <script src="/Content/js/common.js"></script>
    <script type="text/javascript">
        function userLogin() {
            var _username = $("#userName").val();
            var _pwd = $("#Password").val();
            if (_username == "") {
                layer.msg("请输入用户名", { time: 1200 }); return;
            }
            if (_pwd == "") { layer.msg("请输入密码", { time: 1200 }); return; }
            ajax("/bfp_account/login", { username: _username, password: _pwd }, function (data) {
                if (data.code == 1) {
                    layer.msg("登陆成功", { time: 1200 }, function () { location.href = "/Home/index"; })
                } else { layer.msg(data.msg, { time: 1200 }) };
            });
        }
    </script>
</body>
</html>
